home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmTopMost
- BorderStyle = 1 'Fixed Single
- Caption = "The Top Most Program"
- ClientHeight = 2340
- ClientLeft = 1095
- ClientTop = 1830
- ClientWidth = 4065
- Height = 3030
- Icon = "TOPMOST.frx":0000
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2340
- ScaleWidth = 4065
- Top = 1200
- Width = 4185
- Begin VB.OptionButton optNotTopMost
- Caption = "I am &NOT the top-most window."
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 1080
- Width = 3855
- End
- Begin VB.OptionButton optTopMost
- Caption = "I am the &top-most window."
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 12
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 480
- Value = -1 'True
- Width = 3255
- End
- Begin TegotopLib.TegoTop TegoTop1
- Left = 1560
- Top = 1680
- _version = 65536
- _extentx = 1640
- _extenty = 1058
- _stockprops = 0
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuExit
- Caption = "E&xit"
- End
- End
- Begin VB.Menu mnuHelp
- Caption = "&Help"
- Begin VB.Menu mnuAbout
- Caption = "&About..."
- End
- End
- Attribute VB_Name = "frmTopMost"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- ' All variables must be declared.
- Option Explicit
- Private Sub Form_Load()
- ' Make this form a top-most window.
- TegoTop1.MakeWindowTopMost (Me.hWnd)
- End Sub
- Private Sub mnuAbout_Click()
- Dim Title
- Dim Msg
- Dim CR
- CR = Chr(13) + Chr(10)
- ' Prepare the title of the About message box.
- Title = "About the Top Most Program"
- Msg = "This program was written with Visual "
- Msg = Msg + "Basic for Windows, using the "
- Msg = Msg + "TegoSoft Top Most gadget OCX control. "
- Msg = Msg + CR + CR
- Msg = Msg + "The TegoSoft Top Most gadget OCX control "
- Msg = Msg + "is part of the TegoSoft OCX Control "
- Msg = Msg + "Kit - a collection of various OCX controls. "
- Msg = Msg + CR + CR
- Msg = Msg + "For more information about the "
- Msg = Msg + "TegoSoft OCX Control Kit, contact TegoSoft "
- Msg = Msg + "at:"
- Msg = Msg + CR + CR
- Msg = Msg + "TegoSoft Inc." + CR
- Msg = Msg + "P.O. Box 389" + CR
- Msg = Msg + "Bellmore, NY 11710"
- Msg = Msg + CR + CR
- Msg = Msg + "Phone: (516)783-4824"
- ' Display the About message box.
- MsgBox Msg, vbInformation, Title
- End Sub
- Private Sub mnuExit_Click()
- ' Terminate the program.
- Unload Me
- End Sub
- Private Sub optNotTopMost_Click()
- ' Make this form a non top-most window.
- TegoTop1.MakeWindowNonTopMost (Me.hWnd)
- End Sub
- Private Sub optTopMost_Click()
- ' Make this form a top-most window.
- TegoTop1.MakeWindowTopMost (Me.hWnd)
- End Sub
-